gtk-demo: Add more keywords
authorMatthias Clasen <mclasen@redhat.com>
Wed, 18 Nov 2020 15:48:01 +0000 (10:48 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 18 Nov 2020 15:48:57 +0000 (10:48 -0500)
Add GtkShortcutController as a keyword to some demos that
show its use.

demos/gtk-demo/builder.c
demos/gtk-demo/sliding_puzzle.c

index 22c06dfa728fdccefd0e8a4958e6d2acd3f286b9..082632204a4591d07a557ded340d34f19f1221af 100644 (file)
@@ -1,5 +1,5 @@
 /* Builder
- * #Keywords: GMenu, GtkPopoverMenuBar, GtkBuilder, GtkStatusBar, toolbar
+ * #Keywords: GMenu, GtkPopoverMenuBar, GtkBuilder, GtkStatusBar, GtkShortcutController, toolbar
  *
  * Demonstrates a traditional interface, loaded from a XML description,
  * and shows how to connect actions to the menu items and toolbar buttons.
index 4d7e23f908f459cdeb0dc2f1406e7a376609ab0b..1af4e2b48a5cb26aa71478156ac74798d7296e68 100644 (file)
@@ -1,5 +1,5 @@
 /* Sliding Puzzle
- * #Keywords: GdkPaintable, GdkGesture, game
+ * #Keywords: GdkPaintable, GdkGesture, GtkShortcutController, game
  *
  * This demo demonstrates how to use gestures and paintables to create a
  * small sliding puzzle game.
@@ -281,7 +281,8 @@ start_puzzle (GdkPaintable *paintable)
   gtk_aspect_frame_set_obey_child (GTK_ASPECT_FRAME (frame), FALSE);
 
   /* Add shortcuts so people can use the arrow
-   * keys to move the puzzle */
+   * keys to move the puzzle
+   */
   controller = gtk_shortcut_controller_new ();
   gtk_shortcut_controller_set_scope (GTK_SHORTCUT_CONTROLLER (controller),
                                      GTK_SHORTCUT_SCOPE_LOCAL);